﻿using AppWebApi.Models.Dtos;
using AppWebApi.Models.Form;
using AutoMapper;
using Modules;
using Modules.Entitys;
using Modules.Person;
using Modules.System.Security;
using Modules.System.Settings.Entitys;

namespace AppWebApi.Converts
{
    public class AutoMapperProfiles : Profile
    {
        public AutoMapperProfiles()
        {
            CreateMap<SecurityEditForm, SysSecurity>();

            CreateMap<PersonInfo, PersonInfoDto>();

            CreateMap<ManagerInfo, ManagerInfoDto>();

            CreateMap<ProjectPositionEditForm, ProjectPosition>();

            CreateMap<ProjectPosition, ProjectPositionDto>();

            #region 通知
            CreateMap<SysNotify,SysNotifyDto>();
            CreateMap<WorkerNotify, WorkerNotifyDto>();
            CreateMap<WorkerNotify, WorkerNotifyListDto>();
            #endregion
        }
    }
}
